package archer.application.core.subject;

import archer.framework.security.token.Subject;

import java.io.Serializable;

/**
 * token中存储的用户对象
 *
 * @author christ
 * @date 2016/6/7
 */
public class ArcherUser implements Subject, Serializable {

    private String userId;

    private String loginName;

    private String mobile;

    private String email;

    private String type;

    @Override
    public String getUserId() {

        return userId;
    }

    public ArcherUser setUserId(String userId) {
        this.userId = userId;
        return this;
    }

    public String getLoginName() {
        return loginName;
    }

    public ArcherUser setLoginName(String loginName) {
        this.loginName = loginName;
        return this;
    }

    public String getMobile() {
        return mobile;
    }

    public ArcherUser setMobile(String mobile) {
        this.mobile = mobile;
        return this;
    }

    public String getEmail() {
        return email;
    }

    public ArcherUser setEmail(String email) {
        this.email = email;
        return this;
    }

    public String getType() {
        return type;
    }

    public ArcherUser setType(String type) {
        this.type = type;
        return this;
    }
}
